package com.qianfeng.user;

import com.qianfeng.config.MyConfig;
import com.qianfeng.config.service.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMain {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext(MyConfig.class);
        UserServiceImpl service = context.getBean(UserServiceImpl.class);
        System.err.println(service);
    }
}
